* Remove Jerome from debian/control Uploaders since he has
retired. (closes: #573442)
- -- Rob Browning <rlb@defaultvalue.org> Sat, 17 Apr 2010 19:38:45 -0700
+ * Support DEB_BUILD_OPTIONS parallel=N.
+
+ -- Rob Browning <rlb@defaultvalue.org> Sat, 17 Apr 2010 23:37:04 -0700
emacs23 (23.1+1-6) unstable; urgency=low
endif # neq (m68k,$(DEB_HOST_ARCH))
endif # not noopt
+joblimit := $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
+ifeq (,$(joblimit))
+ joblimit := 1
+endif
+
target := $(DEB_HOST_GNU_TYPE)
movemail_bin := usr/lib/emacs/$(runtime_ver)/$(target)/movemail
endef
define build_cmd
- $(MAKE) -C $(1) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
+ $(MAKE) -j $(joblimit) -C $(1) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"
# If we don't use bootstrap, we need to explicitly build info.
- $(MAKE) -C $(1) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" info
+ $(MAKE) -j $(joblimit) -C $(1) CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" info
endef
# If we ever need to do the stripping outside of dh_strip, just add an